package com.mskj.zxmy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mskj.zxmy.dto.LLdDetailFo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @BelongsProject: zxmy
 * @BelongsPackage: com.mskj.zxmy.entity
 * @Author: lk
 * @CreateTime: 2025-07-23
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@Schema(description = "领料单")
public class CollarList {

    private Integer id;
    private Integer productionTasks;
    private String llState;
    @Schema(description = "单据编号")
    private String theCollarNumber;
    private Integer associatedProducts;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Schema(description = "领料单日期")
    private Date f775;
    private String theLeadman;
    private BigDecimal numberToBeProduced;
    @Schema(description = "数量")
    private BigDecimal totalNumber;
    private Integer associatedOrders;
    private String approvalStatus;
    private String theCollarsFine; // JSON类型
    private String remarks;
    private Integer associatedProcurementToTheLibrar;
    @Schema(description = "领料类型")
    private String typeOfCollar;
    private String originalSingleId;
    @Schema(description = "生产任务编号")
    private String devNo;
    @Schema(description = "产品信息")
    private String prodInfo;
    @Schema(description = "生产工序")
    private String processName;
    @Schema(description = "领料人")
    private String llMan;
    @Schema(description = "工艺任务ID")
    private Integer processTaskId;

    @Schema(description = "前端回传领料详情")
    private List<LLdDetailFo> detailList;
    @Schema(description = "前端显示详情")
    private List<CollarChecklist> collarListDetailsList;

}
